package com.lqk.shardingjdbcproj.enums;

public enum ResponseEnum {

    /**
     * 自定义返回码
     */
    CODE_200(200,"成功"),
    CODE_400(400,"失败");

    // 返回码
    private int code;

    // 返回信息
    private String message;

    ResponseEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
